package com.example.testspringboot.bean;

import lombok.Data;

import java.util.List;
@Data
public class Cate1 {
    private int id;
    private String name;
    private String value;
    private String type;
    private String unit;
    private String color;
    private String icon;
    private List<Cate1> children;
    private int parentId;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public List<Cate1> getChildren() {
        return children;
    }

    public void setChildren(List<Cate1> children) {
        this.children = children;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public Cate1() {
    }

    public Cate1(int id, String name, String value, String type, String unit, String color, String icon, List<Cate1> children, int parentId) {
        this.id = id;
        this.name = name;
        this.value = value;
        this.type = type;
        this.unit = unit;
        this.color = color;
        this.icon = icon;
        this.children = children;
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return "Cate1{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", value='" + value + '\'' +
                ", type='" + type + '\'' +
                ", unit='" + unit + '\'' +
                ", color='" + color + '\'' +
                ", icon='" + icon + '\'' +
                ", children=" + children +
                ", parentId=" + parentId +
                '}';
    }
}
